﻿using HCQ2_Model.VR.Model;
using HCQ2_Model.VR.Params;
using HCQ2_Model.VRDD.InputDto._210908;
using HCQ2_Model.VRDD.InputDto._211217;
using HCQ2_Model.VRDD.OutputDto._211217;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_IDAL
{
    public partial interface IT_VRDDSpecMainDAL
    {
        /// <summary>
        ///  获取规格列表
        /// </summary>
        /// <param name="isMoney"></param>
        /// <param name="isType"></param>
        /// <param name="specName"></param>
        /// <returns></returns>
        List<SpecResultList> GetSpecResultList(int fileId, int isMoney,string isType,string specName);
        /// <summary>
        ///  删除已不在的子规格数据
        /// </summary>
        /// <param name="optionId"></param>
        /// <param name="specId"></param>
        /// <returns></returns>
        int DeleteSpecChild(List<string> optionId, int specId);
        /// <summary>
        ///  获取待删除子规格图片附件地址
        /// </summary>
        /// <param name="optionId"></param>
        /// <param name="specId"></param>
        /// <returns></returns>
        List<string> GetDeleteSpecChildPic(List<string> optionId, int specId);
        /// <summary>
        ///  获取重置库存数据信息
        /// </summary>
        /// <param name="fileId"></param>
        /// <returns></returns>
        List<VRSpecChildOption> GetSpecChildOption(int fileId);
        /// <summary>
        ///  获取商品库存列表
        /// </summary>
        /// <param name="fileId"></param>
        /// <returns></returns>
        List<SpecRepertoryModel> GetSpecRepertoryList(int fileId);
        /// <summary>
        ///  获取商品价格列表
        /// </summary>
        /// <param name="fileId"></param>
        /// <returns></returns>
        List<SpecPriceModel> GetSpecPriceList(int fileId);
        /// <summary>
        ///  获取规格组合价格列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        List<GroupCodeModel> GetCommPriceList(CommPriceInput param);
        /// <summary>
        ///  获取规格组合价格
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        decimal GetCommPrice(int fileId, string groupCode);
        /// <summary>
        ///  获取规格组合库存
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        int GetCommStock(int fileId, string groupCode);
        /// <summary>
        ///  获取规格组合库存列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        List<GroupCodeModel> GetCommStockList(CommPriceInput param);
        /// <summary>
        ///  app获取规格列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        List<OutputDDSpecList> GetDDSpecList(InputDDSpecParam param);
    }
}